package day9zy.laoshi;

public class Laoshi {
    private String name;
    private int age;
    private int jl;
    private String sex;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setJl(int jl) {
        this.jl = jl;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public int getJl() {
        return jl;
    }

    public String getSex() {
        return sex;
    }
    public Laoshi(){

    }
    public Laoshi(String name,int age,int jl,String sex){
        this.name = name;
        this.age = age;
        this.jl = jl;
        this.sex = sex;
    }
    public void selfintroduce(){
        System.out.println("姓名"+name+"年龄"+age+"教龄"+jl+"性别"+sex);
    }
    public void givelession(){
        System.out.println(name+"老师在上课");
    }
}
class Javals extends Laoshi{
    public Javals(String name,int age,int jl,String sex){
        super(name,age,jl,sex);
    }
    public Javals(){

    }
    public void sxjava(){
        System.out.println(getName()+"老师熟悉java");
    }
}
class Uils extends Laoshi{
    public Uils(String name,int age,int jl,String sex){
        super(name,age,jl,sex);
    }
    public Uils(){

    }
    public void hztx(){
        System.out.println(getName()+"老师绘制图像");
    }
}
class Netls extends Laoshi{
    public Netls(String name,int age,int jl,String sex){
        super(name,age,jl,sex);
    }
    public Netls(){

    }
    public void jiaoc(){
        System.out.println(getName()+"老师教c#");
    }
}
